package com.atguigu;

import com.atguigu.mapreduce01.ReadFruitDriver;
import com.atguigu.mapreduce02.ReadFruitHDFSDriver;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.util.Tool;
import org.apache.hadoop.util.ToolRunner;

/**
 * @author lvbingbing
 * @date 2020-07-26 20:36
 */
public class JobRunner {
    public static void main(String[] args) throws Exception {
        Tool tool = null;
        if ("mr1".equals(args[0])) {
            tool = new ReadFruitDriver();
        } else {
            tool = new ReadFruitHDFSDriver();
        }
        ToolRunner.run(HBaseConfiguration.create(), tool, args);
    }
}
